package divTools;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CheckMAC {

	/**
	 * Checks if a string is a MAC address
	 * @param macAdress
	 * @return
	 */
	public static Boolean IsMAC(String macAdress) {
		
		Pattern pattern = Pattern.compile("([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])", Pattern.CASE_INSENSITIVE);
		Matcher matcher = pattern.matcher(macAdress);
		return matcher.matches();
	}
}
